home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / SHELLAPI.H < prev    next >
C/C++ Source or Header  |  1995-09-05  |  3KB  |  91 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * shellapi.h -  SHELL.DLL functions, types, and definitions                   *
  4. *                                                                             *
  5. *               Copyright (c) 1992, Microsoft Corp.  All rights reserved      *
  6. *                                                                             *
  7. \*****************************************************************************/
  8.  
  9. #ifndef _INC_SHELLAPI
  10. #define _INC_SHELLAPI
  11.  
  12. #ifndef RC_INVOKED
  13. #pragma pack(1)         /* Assume byte packing throughout */
  14. #endif /* RC_INVOKED */
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {            /* Assume C declarations for C++ */
  18. #endif    /* __cplusplus */
  19.  
  20. /* If included with Windows 3.0 windows.h: define 3.1-compatible types */
  21.  
  22. #ifndef _INC_WINDOWS
  23.  
  24. #define HDROP   HANDLE
  25. #ifndef WINAPI
  26. #define WINAPI  FAR PASCAL
  27. #endif
  28. #define LPCSTR  LPSTR
  29. #define UINT    WORD
  30.  
  31. #else
  32.  
  33. DECLARE_HANDLE(HDROP);
  34.  
  35. #endif
  36.  
  37. /* return codes from Registration functions */
  38. #define ERROR_SUCCESS           0L
  39. #define ERROR_BADDB             1L
  40. #define ERROR_BADKEY            2L
  41. #define ERROR_CANTOPEN          3L
  42. #define ERROR_CANTREAD          4L
  43. #define ERROR_CANTWRITE         5L
  44. #define ERROR_OUTOFMEMORY       6L
  45. #define ERROR_INVALID_PARAMETER 7L
  46. #define ERROR_ACCESS_DENIED     8L
  47.  
  48. #define REG_SZ            1        /* string type */
  49.  
  50. #define HKEY_CLASSES_ROOT    1
  51.  
  52. typedef DWORD HKEY;
  53. typedef HKEY FAR* PHKEY;
  54.  
  55. LONG WINAPI RegOpenKey(HKEY, LPCSTR, HKEY FAR*);
  56. LONG WINAPI RegCreateKey(HKEY, LPCSTR, HKEY FAR*);
  57. LONG WINAPI RegCloseKey(HKEY);
  58. LONG WINAPI RegDeleteKey(HKEY, LPCSTR);
  59. LONG WINAPI RegSetValue(HKEY, LPCSTR, DWORD, LPCSTR, DWORD);
  60. LONG WINAPI RegQueryValue(HKEY, LPCSTR, LPSTR, LONG FAR*);
  61. LONG WINAPI RegEnumKey(HKEY, DWORD, LPSTR, DWORD);
  62.  
  63. UINT WINAPI DragQueryFile(HDROP, UINT, LPSTR, UINT);
  64. BOOL WINAPI DragQueryPoint(HDROP, POINT FAR*);
  65. void WINAPI DragFinish(HDROP);
  66. void WINAPI DragAcceptFiles(HWND, BOOL);
  67.  
  68. HICON WINAPI ExtractIcon(HINSTANCE hInst, LPCSTR lpszExeFileName, UINT nIconIndex);
  69.  
  70. /* error values for ShellExecute() beyond the regular WinExec() codes */
  71. #define SE_ERR_SHARE            26
  72. #define SE_ERR_ASSOCINCOMPLETE  27
  73. #define SE_ERR_DDETIMEOUT       28
  74. #define SE_ERR_DDEFAIL          29
  75. #define SE_ERR_DDEBUSY          30
  76. #define SE_ERR_NOASSOC          31
  77.  
  78. HINSTANCE WINAPI ShellExecute(HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, int iShowCmd);
  79. HINSTANCE WINAPI FindExecutable(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResult);
  80.                  
  81.  
  82. #ifdef __cplusplus
  83. }
  84. #endif    /* __cplusplus */
  85.  
  86. #ifndef RC_INVOKED
  87. #pragma pack()
  88. #endif  /* RC_INVOKED */
  89.  
  90. #endif  /* _INC_SHELLAPI */
  91.